package com.bingxue.edu.parent.model.resp;

import com.bingxue.edu.management.education.model.entity.ArrangeTemplate;
import com.bingxue.edu.management.education.model.entity.ClassInfo;
import com.bingxue.edu.management.education.model.entity.TimeTemplate;
import com.bingxue.edu.parent.model.entity.StudentClassInfo;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author panbo
 * @since 2024/10/28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableRef(ClassInfo.class)
public class StudentClassInfoResp extends StudentClassInfo {

    @Schema(description = "期段")
    @RelationManyToOne(selfField = "arrangeTemplateId", targetTable = "edu_arrange_template", targetField = "id")
    private ArrangeTemplate arrangeTemplate;

    @Schema(description = "时间段")
    @RelationManyToOne(selfField = "timeTemplateId", targetTable = "edu_time_template", targetField = "id")
    private TimeTemplate timeTemplate;

    @RelationManyToOne(selfField = "leadTeacherId", targetTable = "base_employee", targetField = "id", valueField = "name")
    @Schema(description = "主讲老师名称")
    private String leadTeacherName;

    @RelationManyToOne(selfField = "campusId", targetTable = "base_org", targetField = "id", valueField = "name")
    @Schema(description = "校区名称")
    private String campusName;

}
